<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <el-button></el-button>
        <el-button></el-button>
        <el-button :falg='msg' title="子组件的值"></el-button>

    </div>
    <script src="../vue.js"></script>
    <script>
        Vue.component('el-button', {
            props: ['title', 'falg'],
            data() {
                return {
                    count: 0
                }
            },
            template: ` 
            
            <div>{{falg +"----" +title}}</div>`,
            methods: {
                handle() {
                    this.count++
                }
            }
        })
        const vm = new Vue({
            el: "#app",
            data: {
                msg: '父组件的值'
            }
        })
    </script>
</body>

</html>